@import "@wordpress/base-styles/breakpoints";
@import "@automattic/onboarding/styles/mixins";

.import__capture-container {
	max-width: 368px;
	margin: 0 auto;
}

.import__capture {
	.form-label {
		font-size: 0.875rem;
		font-weight: 500;
		color: var(--studio-gray-60);
		margin-bottom: 0.5rem;

		span {
			font-weight: normal;
			color: var(--studio-gray-40);
		}
	}

	.form-fieldset {
		margin-bottom: 1em;
	}

	input[type="text"].form-text-input {
		font-size: 0.875rem;
		/* stylelint-disable-next-line declaration-property-unit-allowed-list */
		line-height: 2rem;
		color: var(--studio-gray-90);
		border-color: var(--studio-gray-10);
	}

	input[type="text"].form-text-input::placeholder {
		color: var(--studio-gray-30);
	}

	button[type="submit"] {
		width: 100%;
	}

	.form-setting-explanation {
		font-style: normal;

		svg {
			position: relative;
			top: 4px;
		}

		.is-error {
			color: var(--color-error);

			svg {
				fill: var(--color-error);
				transform: rotate(180deg);
			}
		}
	}

	.action-buttons__importer-list {
		font-size: 0.875rem;
		font-weight: 400;
		text-align: center;
		text-decoration: none;
		color: var(--studio-gray-90);
		margin-top: 1rem;

		button {
			text-decoration: underline;
			color: inherit;
			margin: 0;
			padding: 0;
		}
	}
}

.import__capture-wrapper {
	@include onboarding-block-margin;
	margin-bottom: 60px;

	@media (min-width: $break-small) {
		margin-bottom: 0;
	}
}

.import__site-identify-hosting-details {
	background-color: #f6f7f7;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 40px auto 0 auto;
	max-width: 368px;
	padding: 1.5rem;

	&--title {
		color: var(--studio-gray-100);
		font-size: 1.25rem;
		font-weight: 500;
	}

	&--list {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;

		&-item {
			display: flex;
			flex-direction: column;
			gap: 0.25rem;

			&-description {
				color: var(--studio-gray-60);
				font-size: 0.875rem;
				font-weight: 400;
				letter-spacing: -0.16px;
			}

			&-title {
				color: var(--studio-gray-70);
				font-size: 1rem;
				font-weight: 500;
				letter-spacing: -0.32px;
			}
		}
	}
}

.step-container-v2:has(.step-container-v2--site-migration-identify) {
	.import__capture-container {
		max-width: 100%;
		margin: unset;
	}

	.checklist-card {
		margin: 40px auto 0;
		max-width: 100%;
	}
}
